import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import './Ulits/elementui'
import 'element-ui/lib/theme-chalk/index.css';
import './permission'
import {baseURL} from './Ulits/request'
import '@/directive'
Vue.use(ElementUI);
Vue.config.productionTip = false

//定义过滤器
Vue.filter('urlFilter',function(url){
	if(url&& (url.indexOf('http') == -1)){
		return baseURL + url
	}else{
		return url
	}
})


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
